package com.itzh.prototype;

public class CloneTest {
    public static void main(String[] args) {
        ProtoType protoType = new ProtoType();
        protoType.name = "TOM";
        protoType.list.add("147");
        try {
            ProtoType obj = (ProtoType)protoType.clone();
            System.out.println(obj.name);
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
    }
}
